package model

// by daoyi
import "time"

type Goods struct {
	Id        uint      `gorm:"primary_key"`
	CreatedAt string    `gorm:"type:varchar(32);column:create_at;default:null"`
	UpdatedAt string    `gorm:"type:varchar(32);column:update_at;default:null"`
	DeletedAt time.Time `gorm:"index"`
	GoodsName string    `gorm:"type:varchar(256);column:goods_name;comment:产品名"`
	GoodsNo   string    `gorm:"type:varchar(64);goods_no:type;comment:产品编号"`
	KuNum     uint      `gorm:"column:ku_num;comment:库存"`
	Company   string    `gorm:"type:varchar(255);column:company;comment:货物公司"`
	Money     float64   `gorm:"type:decimal(10,2);column:money;default:0;comment:价格"`
	DongNum   uint      `gorm:"column:dong_num;default:0;comment:冻结数量"`
}
